<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:spring="http://www.springframework.org/tags" version="2.0">
	<jsp:directive.page contentType="text/html; charset=UTF-8"
		pageEncoding="UTF-8" session="true" />
	<jsp:output doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
		omit-xml-declaration="true" />
	<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><spring:message code="page.addCar.title" /></title>
<spring:url value="/resources/style.css" var="cssRes" />
<link href="${cssRes}" rel="stylesheet" type="text/css" />
</head>
<body>
	<c:import url="header.jsp" />

	<c:if test="${addCar ne null }">
		<spring:message code="adminpage.button.addCar" var="buttonAddCar" />
		<table>
			<CAPTION>
				<spring:message code="adminpage.addCarForm.caption" />
			</CAPTION>
			<br />
			<FORM action="${pageContext.request.contextPath}/admin/addCar"
				method="post">
				<tr>
					<td><spring:message code="adminpage.addCarForm.model" /> :</td>
					<td><INPUT type="text" name="cModel" /></td>
				</tr>
				<tr>
					<td><spring:message code="adminpage.addCarForm.year" /> :</td>
					<td><INPUT type="text" name="cYear" /></td>
				</tr>
				<tr>
					<td><spring:message code="adminpage.addCarForm.color" /> :</td>
					<td><select name="cColor">
							<option disabled="disabled"><spring:message
									code="adminpage.addCarForm.colorselect.disableItem" /></option>
							<option value="red"><spring:message
									code="adminpage.addCarForm.colorselect.red" /></option>
							<option value="blue"><spring:message
									code="adminpage.addCarForm.colorselect.blue" /></option>
							<option value="white"><spring:message
									code="adminpage.addCarForm.colorselect.white" /></option>
							<option value="black"><spring:message
									code="adminpage.addCarForm.colorselect.black" /></option>
							<option value="silver"><spring:message
									code="adminpage.addCarForm.colorselect.silver" /></option>
					</select></td>
				</tr>
				<tr>
					<td><spring:message code="adminpage.addCarForm.engineVolume" />
						:</td>
					<td><INPUT type="number" name="cEngineVolume" /></td>
				</tr>
				<tr>
					<td><spring:message code="adminpage.addCarForm.tankCapacity" />
						:</td>
					<td><INPUT type="number" name="cTankCapacity" /></td>
				</tr>
				<tr>
					<td><spring:message code="adminpage.addCarForm.power" /> :</td>
					<td><INPUT type="number" name="cPower" /></td>
				</tr>
				<tr>
					<td><spring:message code="adminpage.addCarForm.consumption" />
						:</td>
					<td><INPUT type="text" name="cConsumption" /></td>
				</tr>
				<tr>
					<td><spring:message code="adminpage.addCarForm.gearbox" /> :</td>
					<td><select name="cGearbox">

							<option selected="selected" value="manual"><spring:message
									code="adminpage.addCarForm.gearboxselect.manual" /></option>
							<option value="auto"><spring:message
									code="adminpage.addCarForm.gearboxselect.auto" /></option>
					</select></td>
				</tr>
				<tr>
					<td><spring:message code="page.car.price" />:</td>
					<td><input type="text" name="cPrice" value="" /></td>
				</tr>
				<tr>
					<td id="output"><INPUT type="submit" value="${buttonAddCar}" /></td>
				</tr>
			</FORM>
		</table>
	</c:if>
</body>
	</html>
</jsp:root>